package com.sanbi.erp.api.Enum;


import java.text.ParseException;


public enum LatestStatusEnum {

    StatusSubmitOrder("SubmitOrder","下单"),
    StatusAssignPickup("AssignPickup","分配提货员"),
    StatusCancelAssignPickup("CancelAssignPickup","撤销分配提货员 "),
    StatusPickUpOrder("PickUpOrder","提货扫描"),
    StatusRecevieOrder("RecevieOrder","收件 "),
    StatusShipping("Shipping","发件"),
    StatusArrive("Arrive","到件"),
    StatusAssignDA("AssignDA","分配派件员扫描"),
    StatusOFD("OFD","派件"),
    StatusBTD("BTD","归班"),
    StatusDeliveryCompleted ("DeliveryCompleted","运单关闭(自动)"),
    StatusReturnShipping("ReturnShipping","退件发件"),
    StatusReturnArrive ("ReturnArrive","退件到件"),
    StatusRTC("RTC","退返客户"),
    StatusTransfer("Transfer","转寄成功"),
    StatusAbandon("Abandon","销毁扫描"),
    StatusUnpacking("Unpacking","拆包入库扫描"),
    StatusVDispatch("VDispatch","派单扫描"),
    StatusVBTD("VBTD","供应商包裹退回揽收"),
    StatusSCH("SCH","预约成功"),
    StatusReturnFailed("ReturnFailed","退货退款失败"),
    StatusAbnormalDelivered("AbnormalDelivered","异常关闭"),

    StatusDelivered("Delivered","非逆向订单签收"),
    StatusReturnSuccess("ReturnSuccess","逆向订单签收"),
    StatusRefundSuccess("RefundSuccess","退款成功"),

    StatusCancelOrder("CancelOrder","取消订单"),

    StatusIntlReceived("IntlReceived","国际跟踪(供应商收货)"),
    StatusIntlShipping("IntlShipping","国际跟踪(实际起飞)"),
    StatusIntlArrive("IntlArrive","国际跟踪(实际到达)"),
    StatusIntlClearance("IntlClearance","国际跟踪(清关完成)"),

    StatusOPEN("OPEN","仓库接收到订单"),
    StatusRECEIVED("RECEIVED","收货完成"),
    StatusALLOCATED("ALLOCATED","订单全部分配"),
    StatusCANCELED("CANCELED","仓库已取消订单"),
    StatusPACKAGED("PACKAGED","订单包装完成"),
    StatusPICKED("PICKED","订单拣货完成"),
    StatusPACKAGING("PACKAGING","正在打包"),
    StatusSENDED("SENDED","订单交接完成"),

    Status0003("0003","Delivery Associate Complaint"),
    Status1003("1003","要求开包查验"),
    Status1004("1004","没有下单"),
    Status1008("1008","和卖家约定取消"),
    Status1009("1009","不想给出原因"),
    Status1010("1010","订单重复"),
    Status1011("1011","包裹损坏"),
    Status1014("1014","包裹差异"),
    Status1016("1016","无效错误号码"),
    Status1019("1019","Previous Order Dispute"),
    Status1020("1020","Delivery delay"),
    Status1021("1021","Received items are different from the items ordered"),
    Status1022("1022","Disrepancy in Quality"),
    Status1023("1023","只刷卡支付"),
    Status1024("1024","用户取消下单"),
    Status1025("1025","自提点退回"),
    Status1101("1101","商家取消下单"),
    Status111("111","超出 Imile 派送范围"),
    Status1111("1111","运营调查"),
    Status1111111111("1111111111","收货人未提供 ID"),
    Status1223("1223","自建偏远区域"),
    Status133243("133243","开箱后取消"),
    Status20001("20001","DS Sorting Error(Other DS Delivery)"),
    Status2002("2002","地址不全 ，买家联系不上"),
    Status2003("2003","客户更改地址"),
    Status2005("2005","客户挂电话"),
    Status2006("2006","客户会打回来"),
    Status2007("2007","客户要求重新打回来"),
    Status2008("2008","客户要求订单信息"),
    Status2009("2009","跟进-没有现金"),
    Status2010("2010","跟进--不在所属城市，国家"),
    Status2011("2011","自提"),
    Status2014("2014","收件人预约 7 天后派送"),
    Status3004("3004","预约未来"),
    Status4001("4001","地址完整， 客户联系不上"),
    Status5001("5001","偏远地区"),
    Status5003("5003","派送站点变化"),
    Status6001("6001","没有联系上"),
    Status6002("6002","关机"),
    Status7001("7001","超过 NDR 派件次数"),
    Status7002("7002","Bad Address"),
    Status7003("7003","Interruption orders"),
    Status8001("8001","OFD Date Changed"),
    Status8002("8002","OFD Location Changed"),
    Status8801("8801","开箱后取消"),
    Status8802("8802","没有联系上"),
    StatusCD("CD","清关延误"),
    StatusUndelivered("Undelivered","海关销毁"),
    ;

    private String code;
    private String msg;

    public String getCode(){
        return code;
    }
    public String getMsg(){
        return msg;
    }

    LatestStatusEnum(String code,String msg){
        this.code=code;
        this.msg=msg;
    }

    public static void main(String[] args) throws ParseException {
//        LatestStatusEnum submitOrder = LatestStatusEnum.valueOf("SubmitOrder");
//        System.out.println(submitOrder.msg);
        String latestStatusTime="2022-08-10T20:17:30.000+00:00";
        String date = latestStatusTime.substring(0, 19);
        System.out.println(date);

    }

}
